<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>二维码生成 - 基本配置</title>
</head>

<body>
    <script src="https://cdn.staticfile.org/qrcodejs/1.0.0/qrcode.js"></script>
    将在下方生成二维码
    <div id="qrcode"></div>
    <script type="text/javascript">
        var qrcode = new QRCode(document.getElementById("qrcode"), {
            text: "http://jindo.dev.naver.com/collie",//要生成二维码的内容
            width: 128,//二维码宽度
            height: 128,//二维码高度
            colorDark: "#00bcd4",//二维码颜色
            colorLight: "#cddc39",//二维码背景色
            correctLevel: QRCode.CorrectLevel.H//容错等级
        });
    </script>
</body>

</html>